﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using EyFramework.Library;
using ShuJuGj.Entity;

namespace ShuJuGj.Tj
{
    public partial class FrmReportView : FrmDevBase
    {
        private TjTjbgPdf _TjTjbgPdf;

        public FrmReportView(TjTjbgPdf tjTjbgPdf)
        {
            InitializeComponent();
            _TjTjbgPdf = tjTjbgPdf;
        }

        private void FrmReportView_Load(object sender, EventArgs e)
        {
            if (_TjTjbgPdf != null)
            {
                pdfViewer1.LoadDocument(new MemoryStream(Convert.FromBase64String(_TjTjbgPdf.BGNR)));
            }
        }
    }
}